
function factory (UserModel) {
  return function (req, res) {
    if (req.session.authCode == req.query.authCode) {
      UserModel.findOne({QQEmail: QQEmail}, function (err, user) {
        res.send(user)
      })
    }else {
      res.send('0')
    }
  }
}


module.exports = factory